$fontSize_14: 0.8vw;
$fontSize_16: 0.9vw;
$fontSize_18: 1vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.26vw;
$fontSize_28: 1.3vw;
$fontSize_32: 1.4vw;
$fontSize_36: 1.8vw;
$fontSize_40: 2.1vw;
$fontSize_48: 2.5vw;
$fontSize_50: 2.6vw;
$fontSize_54: 2.7vw;
$fontSize_64: 3.2vw;
$fontSize_70: 3.5vw;
$fontSize_90: 4.5vw;
$fontSize_100: 5vw;
$fontSize_200: 10vw;
$f: 19.2;

.home {
  position: relative;
  width: 100%;

  .section1 {
    margin: 11vw 6vw 3vw 6vw;
    display: flex;
    align-items: center;

    .dot {
      display: flex;
      align-items: center;
      margin: 0 7vw;

      span {
        width: 6/$f+vw;
        height: 6/$f+vw;
        border-radius: 50%;
        background-color: #000;
      }

      p {
        color: #000;
        font-size: $fontSize_16;
        margin-left: .6vw;
      }
    }

    .types {
      display: flex;

      a {
        display: flex;
        align-items: flex-end;
        color: #999A9A;
        font-size: $fontSize_48;
        font-family: 'SourceHanSansCN-Medium';
        margin-right: 3vw;
        transition: all 600ms;

        span {
          font-size: $fontSize_16;
          font-family: 'SourceHanSansCN-Normal';
          margin-left: 0.5vw;
        }

        &:hover {
          color: #1B2170;
        }
      }

      .active {
        color: #1B2170;
      }
    }
  }

  .section2 {
    margin: 2vw 0 6vw 8vw;

    .item {
      position: relative;
      // margin-bottom: 3vw;
      padding: 1.5vw 2vw;
      display: block;
      .bg {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        opacity: 0;
        transition: all 600ms;
        img {
          width: 100%;
          display: block;
          height: 100%;
          object-fit: cover;
        }
      }

      .num {
        color: #02072B;
        font-size: $fontSize_32;
        font-weight: 600;
        font-family: 'Montserrat-Regular.otf';
        transition: all 600ms;
      }

      .t {
        color: #02072B;
        font-size: $fontSize_24;
        font-family: 'SourceHanSansCN-Medium';
        width: fit-content;
        border-bottom: 2px solid white;
        padding: 0.5vw 0;
        margin-top: 1vw;
        transition: all 600ms;
      }

      .d2 {
        display: flex;
        justify-content: space-between;
        margin: 2vw 0 6vw 0;
        .des {
          width: 50%;
          color: #02072B;
          font-size: $fontSize_22;
          transition: all 600ms;
          line-height: 1.5;
        }

        .icons {
          display: flex;
          margin-right: 8vw;
          .i {
            text-align: center;
            margin-left: 1vw;
            .icon {
              img {
                vertical-align: middle;
                width: 51/$f+vw;
              }
            }

            p {
              color: #02072B;
              font-size: $fontSize_16;
              margin-top: 0.5vw;
              transition: all 600ms;
            }
          }
        }
      }
      &:hover{
        .bg{
          opacity: 1;
        }
        .num{
          color:white;
        }
        .t{
          color:white;
        }
        .d2{
          .des{
            color:white;
          }
          .icons{
            p{
              color:white;
            }
          }
        }
      }
    }
  }

  @media screen and (max-width: 1024px) {
    padding-top: 60px;
    .section1{
      margin: 40px 5% 30px 5%;
      flex-direction: column;
      align-items: flex-start;
      .dot{
        margin: 0;
        span{
          width: 6px;
          height: 6px;
        }
        p{
          font-size: 18px;
          margin-left: 5px;
        }
      }
      .types{
        flex-wrap: wrap;
        a{
          font-size: 26px;
          width: 50%;
          margin: 10px 0 0 0;
        }
      }
    }
    .section2{
      margin: 20px 0 30px 5%;
      .item{
        padding: 15px 20px;
        .num{
          font-size: 18px;
        }
        .t{
          font-size: 18px;
        }
        .d2{
          margin: 20px 0 0 0;
          flex-direction: column;
          .des{
            font-size: 14px;
            width: 100%;
          }
          .icons{
            margin-top: 20px;
            .i{
              margin-left: 0;
              margin-right: 10px;
              .icon{
                img{
                  width: auto;
                }
              }
              p{
                font-size: 14px;
                margin-top: 5px;
              }
            }
          }
        }
      }
    }
  }
}